<?php
/**
 * Created by PhpStorm.
 * User: Lin Hui
 * Date: 2017/5/23
 * Time: 14:45
 */

namespace Common\Model;


use Think\Model;

class SlideModel extends Model
{
    /**
     * 获取轮播
     * @param int $type 类型 1：PC 2：手机
     * @return bool|mixed
     */
    public function getSlide($type)
    {
        return $this->where(array('status'=>1, 'type'=>$type))->order('sort')->select();
    }
}